package com.zhengke.service.archie.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zhengke.dao.archie.OrderCenterDao;
import com.zhengke.pojo.archie.GoodsDetail;
import com.zhengke.pojo.archie.OrderDetail;
import com.zhengke.pojo.archie.TvUser;
import com.zhengke.service.archie.IOrderDetailService;

/**
 * @author 黄保富
 * @date 2020年1月14日  
 * @version 1.0.0 
 * 
 */
 @Service
public class IOrderDetailServiceImpl implements IOrderDetailService {
	 
	 //注入
	 @Autowired
	 OrderCenterDao orderdao;

	@Transactional
	@Override
	public List<OrderDetail> orderListDetailList(String user_id) {
		
		return orderdao.orderListDetailList(user_id);
	}

	@Transactional
	@Override
	public TvUser querryTvUserByID(String user_id) {
		
		return orderdao.querryTvUserByID(user_id);
	}

	@Transactional
	@Override
	public GoodsDetail querryGoodsByOrderId(String order_id) {
		
		return orderdao.querryGoodsByOrderId(order_id);
	}

	@Transactional
	@Override
	public List<Map<String, Object>> orderDetailQuerryById(String orderId) {
		
		return orderdao.orderDetailQuerryById(orderId);
	}
}
